#include <QtGui>
#include "licenseDialog.h"

LicenseDialog::LicenseDialog(QWidget *parent) : QTextBrowser(parent) {

//Кодек для руссификации
  russianCodec = QTextCodec::codecForName("UTF-8");
  QTextCodec::setCodecForTr(russianCodec);
  QTextCodec::setCodecForCStrings(russianCodec);

//Установки для окна
  this->setWindowTitle(tr("О Mantissa"));
  this->setFixedSize(WAUTHORS, HAUTHORS);
  // this->resize(WAUTHORS, HAUTHORS);

  QString text("");

  text += "© Разработчики Konqueror, 1999-2008";

  this->setDocument(QTextDocument(text, this));
  

} //LicenseDialog::LicenseDialog(QWidget *parent) : QTextBrowser(parent)

void LicenseDialog::keyPressEvent(QKeyEvent * event) {

  if (event->key() == Qt::Key_Escape) {

    this->hide();

  } //else if (event->key() == Qt::Key_Return)

} //void LicenseDialog::keyPressEvent(QKeyEvent * event)
